package controller

import (
	"github.com/GoAdminGroup/go-admin/context"
	"github.com/GoAdminGroup/go-admin/plugins/admin/modules/table"
	// wangxuPaymentDao "wxgf/library/wangxuPayment/dao"
)

var Video = videoController{}

type videoController struct {
}

func (r videoController) GetTable(ctx *context.Context) table.Table {
	t := getDefaultTable(ctx)
	info := getDefaultInfoPanel(t)
	info.HideEditButton()
	info.HideDetailButton()
	info.HideDeleteButton()
	// info.AddField("订单ID", wangxuPaymentDao.WangxuOrders.Columns().OrderId, db.Int).FieldSortable()
	// info.AddField("交易ID", wangxuPaymentDao.WangxuOrders.Columns().TransactionId, db.Int).FieldSortable()
	// info.AddField("商品ID", wangxuPaymentDao.WangxuOrders.Columns().GoodId, db.Varchar).FieldSortable()
	// info.AddField("数量", wangxuPaymentDao.WangxuOrders.Columns().Quantity, db.Int).FieldSortable()
	// info.AddField("手机", wangxuPaymentDao.WangxuOrders.Columns().UserPhone, db.Varchar)
	// info.AddField("邮箱", wangxuPaymentDao.WangxuOrders.Columns().UserEmail, db.Varchar)
	// info.AddField("创建时间", wangxuPaymentDao.WangxuOrders.Columns().CreatedAt, db.Datetime).FieldSortable()
	// info.SetTable(wangxuPaymentDao.WangxuOrders.Table()).SetTitle("订单列表")
	//
	// formList := getDefaultFormPanel(t)
	// formList.SetTable(wangxuPaymentDao.WangxuOrders.Table()).SetTitle("修改订单").SetDescription("")
	return t
}
